-- GENERATED SPELL FOR [Jayde] --


function spell0_30839(pUnit, Event) --@Blood Strike,n/a--
pUnit:FullCastSpellOnTarget(52374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30839', 599, 1)
end

function spell1_30839(pUnit, Event) --@Icy Touch,n/a--
pUnit:FullCastSpellOnTarget(52372,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30839', 20000, 1)
end

function spell2_30839(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(52373,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30839', 12000, 1)
end

function Sorts_30839(pUnit, Event)
local choix_sorts_30839 = math.random(0, 2)
if choix_sorts_30839 == 0 then
pUnit:RegisterEvent('spell0_30839', 1, 1)
end
if choix_sorts_30839 == 1 then
pUnit:RegisterEvent('spell1_30839', 1, 1)
end
if choix_sorts_30839 == 2 then
pUnit:RegisterEvent('spell2_30839', 1, 1)
end
end

function mob30839_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30839', math.random(1500, 3000), 1)
end

function mob30839_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30839_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30839_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30839, 1, 'mob30839_Action')
RegisterUnitEvent(30839, 2, 'mob30839_Leave')
RegisterUnitEvent(30839, 3, 'mob30839_Kill')
RegisterUnitEvent(30839, 4, 'mob30839_Die')
